const MOCK = require('mockjs')

// // // 随机字符串
// // console.log(MOCK.mock({ string: '哎呀！ ' }))
// // console.log(MOCK.mock({ 'string|2': '哎呀！ ' }))
// // console.log(MOCK.mock({ 'string|1-4': '哎呀！ ' }))
// // // 生成指定长度和范围
// // console.log(MOCK.mock({ string: '@cword', Estring: '@word' }))
// // console.log(MOCK.mock({ string: '@cword(3)', Estring: '@word(3)' }))
// // console.log(MOCK.mock({ 'string|4': '@cword', Estring: '@word' }))
// // console.log(MOCK.mock({ string: '@cword(10,15)', Estring: '@word(10,15)' }))
// // console.log(MOCK.mock({ 'string|10-15': '@cword', Estring: '@word' }))
// // // 生成指定长度的标题和句子
// // console.log(MOCK.mock({ Etitle: '@title', title: '@title', Esentence: '@sentence', sentence: '@sentence' }))
// // console.log(MOCK.mock({ Etitle: '@title(5)', title: '@ctitle(5)', Esentence: '@sentence(10)', sentence: '@csentence(10)' }))
// // // 生成段落
// // console.log(MOCK.mock({ paragraph: '@cparagraph(5)' }))
// // // 数字
// // console.log(MOCK.mock({ number: 10 }))
// // console.log(MOCK.mock({ 'number|80': 1 }))
// // console.log(MOCK.mock({ 'number|1-99': 1 }))
// // console.log(MOCK.mock({ id: '@increment(2)' }))
// // console.log(MOCK.mock({ 'id|3': ['@increment(2)'] }))
// // // 姓名-地址-身份证号 @city(true) 省-市 加上true就只有市
// // console.log(MOCK.mock({ name: '@cname()', idCard: '@id()', address: '@city(true)' }))
// // console.log(MOCK.mock({ name: '@cname()', idCard: '@id()', address: '@city()' }))
// // // 省市县
// // console.log(MOCK.mock({ name: '@cname()', idCard: '@id()', address: '@county(true)' }))
// // // 生成图片
// // console.log(MOCK.mock({ imageUrl: '@image(1920*890, #FF6600, fcfcfc, jpg, 轮播图1)' }))
// // // 生成时间
// // console.log(MOCK.mock({ datae: '@date(yyy-MM-dd hh:mm:ss)' }))
// // Mock拦截

const { lunbo } = MOCK.mock({
  lunbo: {
    big: [
      { img_url: '@/assets/images/index/lunbo/index_lunbo1.png', name: '轮播1' },
      { img_url: '@/assets/images/index/lunbo/index_lunbo2.png', name: '轮播2' },
      { img_url: '@/assets/images/index/lunbo/index_lunbo3.png', name: '轮播3' },
      { img_url: '@/assets/images/index/lunbo/index_lunbo4.png', name: '轮播4' },
      { img_url: '@/assets/images/index/lunbo/index_lunbo5.png', name: '轮播5' }
    ],
    small: [
      { img_mobile_url: '@image(750*820, #FF6600, fcfcfc, jpg, 轮播图1)', name: '轮播1' },
      { img_mobile_url: '@image(750*820, #FF6600, fcfcfc, jpg, 轮播图2)', name: '轮播2' },
      { img_mobile_url: '@image(750*820, #FF6600, fcfcfc, jpg, 轮播图3)', name: '轮播3' },
      { img_mobile_url: '@image(750*820, #FF6600, fcfcfc, jpg, 轮播图4)', name: '轮播4' },
      { img_mobile_url: '@image(750*820, #FF6600, fcfcfc, jpg, 轮播图5)', name: '轮播5' }
    ]
  }
})
module.exports = {
  lunbo
}
